package com.exam.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * answer
 * @author 
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Answer implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 试卷ID
     */
    private Integer paperId;

    /**
     * 题目ID
     */
    private Integer questionId;

    /**
     * 学号
     */
    private String studentId;

    /**
     * 做题答案
     */
    private String answer;

    /**
     * 获得分数
     */
    private Double score;

    /**
     * 题目分数
     */
    private Double questionScore;

    /**
     * 是否正确
     */
    private Integer doRight;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 做题时间
     */
    @TableField(exist = false)
    private Integer doTime;

    /**
     * 正确答案
     */
    @TableField(exist = false)
    private String correctAnswer ;

    private static final long serialVersionUID = 1L;
}